//package com.gitee.shorturl.config;
//
//import com.gitee.shorturl.register.FileRegister;
//import com.gitee.shorturl.register.IRegister;
//import lombok.AccessLevel;
//import lombok.NoArgsConstructor;
//
//import java.util.ArrayList;
//import java.util.Collections;
//import java.util.List;
//
///**
// * @author zxw
// * @date 2023/4/22 22:42
// */
//@NoArgsConstructor(access = AccessLevel.PRIVATE)
//public class ShortUrlSenderConfig {
//
//    private static final ShortUrlSenderConfig config = new ShortUrlSenderConfig();
//
//    private final List<IRegister> registerList = new ArrayList<>(Collections.singletonList(new FileRegister()));
//
//    public static ShortUrlSenderConfig getInstance() {
//        return config;
//    }
//
//    public void addRegister(IRegister register) {
//        if (register != null) {
//            registerList.add(register);
//        }
//    }
//
//
//}
